import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const eiId = 'id'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function geteiId() {
  return Cookies.get(eiId)
}

export function seteiId(token) {
  return Cookies.set(eiId, token)
}

export function removeeiId() {
  return Cookies.remove(eiId)
}
